package com.ecoolex.ying.space.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.ying.space.entity.MarktingCatalog;
import com.ecoolex.ying.space.entity.MarktingCatalogExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface MarktingCatalogMapper {
    long countByExample(MarktingCatalogExample example);

    int deleteByExample(MarktingCatalogExample example);

    int deleteByPrimaryKey(Integer catalogId);

    int insert(MarktingCatalog record);

    int insertSelective(@Param("record") MarktingCatalog record, @Param("selective") MarktingCatalog.Column ... selective);

    MarktingCatalog selectOneByExample(MarktingCatalogExample example);

    List<MarktingCatalog> selectByExample(MarktingCatalogExample example);

    MarktingCatalog selectByPrimaryKey(Integer catalogId);

    MarktingCatalog selectByPrimaryKeyWithLogicalDelete(@Param("catalogId") Integer catalogId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") MarktingCatalog record, @Param("example") MarktingCatalogExample example, @Param("selective") MarktingCatalog.Column ... selective);

    int updateByExample(@Param("record") MarktingCatalog record, @Param("example") MarktingCatalogExample example);

    int updateByPrimaryKeySelective(@Param("record") MarktingCatalog record, @Param("selective") MarktingCatalog.Column ... selective);

    int updateByPrimaryKey(MarktingCatalog record);

    int batchInsert(@Param("list") List<MarktingCatalog> list);

    int batchInsertSelective(@Param("list") List<MarktingCatalog> list, @Param("selective") MarktingCatalog.Column ... selective);

    int logicalDeleteByExample(@Param("example") MarktingCatalogExample example);

    int logicalDeleteByPrimaryKey(Integer catalogId);
}